package com.example.demo.mapper;

import com.example.demo.model.Borrow;
import com.example.demo.model.Librarian;

import java.util.List;

public interface BorrowMapper {
    Integer borrowBook(Borrow borrow);
    Integer updateBookStatus(Integer book_id);
    Integer returnBook(Borrow borrow);

    List<Borrow> getBorrowList();

    List<Borrow> getBorrowById(Integer reader_id);
    Integer queryBookStatus(Integer book_id);

    Integer modifyBorrow(Borrow borrow);
}
